#include <QCoreApplication>
#include <iostream>
#include <conio.h>
using namespace std;

int *func(int *arr, int size)
{
    int i;
    int *p = arr;
    for (i = 0; i < size; i++)
    {
        *arr = *arr + 1;
        arr++;
    }
    return p;
}

int main()
{
    int i;
    int arr[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
    int* arr2 = func(arr, 10);
    for (i = 0; i < 10; i++, arr2++)
        cout << *arr2 << endl;

    getch();
}
